//
//  FocusViewController.swift
//  DYSwiftFramework
//
//  Created by huangdeyu on 2021/10/21.
//  Copyright © 2021 none. All rights reserved.
//

import UIKit

class FocusViewController: BaseFlutterViewController,SubPageProtocol {
    
    override func loadView()  {
        view = FocusView.init()
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.random
        print("关注viewDidLoad")
    }
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        print("关注viewWillAppear")
    }
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        print("关注viewDidAppear")
    }
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        print("关注viewWillDisappear")
    }
    override func viewDidDisappear(_ animated: Bool) {
        super.viewDidDisappear(animated)
        print("关注viewDidDisappear")
    }
    
    
    var visiable: Bool = false {
        willSet {
            if newValue {
                print("切换至关注")
            }
        }
    }

}
